//
//  CZForwardModel.swift
//  GZWeibo007
//
//  Created by 颜祥 on 15/12/25.
//  Copyright © 2015年 Apple. All rights reserved.
//

import UIKit

class CZForwardModel: NSObject
{
    // MARK: - 定义属性
    // 1.用户模型对象:user
    var user: CZUser?
    
    // 2.被转发微博模型对:retweeted_status
    var retweeted_status: CZStatus?
    
    // 3.微博转发的时间
    var created_at: String?
    
    // 4.微博转发的文本内容
    var text: String?
    
    // 5.微博来源
    var source: String?
    
    // 字典转模型
    init(dict: [String: AnyObject])
    {
        super.init()
        
        // KVC
        setValuesForKeysWithDictionary(dict)
        
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {}
    
    // 打印对象
    override var description: String
    {
        let properties = ["user","retweeted_status","created_at","text","source"];
        
        let dict = dictionaryWithValuesForKeys(properties)
        
        return "\n\t转发微博模型属性:\(dict)"
    }
    
   
    
}
